02. Scripting a Simple Rotation
Scripting a Simple Rotation
Course Asset
- Download: VR Software Development - Programming Animations
- Unity project: Programming Animations
- Scene: Assets > UdacityVR > Scenes > ProgrammingAnimations.unity
Video Addendum
At 0:15 minutes into the video
When the instructor rotates the Sun with the Rotate tool:
- The instructor has the Gizmo handle position for the Gizmo rotation set to Local.
- If you notice that all Rotation values
X,Y, andZare changing in the Inspector window as you rotate theSun, your Gizmo handle position for the Gizmo rotation is set to Global. - You can toggle the Gizmo handle position for the Gizmo rotation by clicking the Global/Local button in the Toolbar.
Recommended Reading
- Unity Scripting API: Transform.Rotate
Additional Reading
- Unity Manual: The Toolbar
- Unity Manual: Positioning GameObjects > Gizmo handle position toggles